<%--
  Created by IntelliJ IDEA.
  User: qince
  Date: 2015/8/3
  Time: 11:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
%>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
  <meta charset="utf-8" />
  <script type="text/javascript">;(function(){var w=parseInt(window.screen.width),s=w/640,u=navigator.userAgent.toLowerCase(),m='<meta name="viewport" content="width=640,';if(/android (\d+\.\d+)/.test(u)){if(parseFloat(RegExp.$1)>2.3)m+='minimum-scale='+s+',maximum-scale='+s+',';}else{m+='user-scalable=no,';}m+='target-densitydpi=device-dpi">';document.write(m);}());</script>
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  <meta name="format-detection" content="telephone=no" />
  <title>微信分享测试</title>
  <script src="${root}/common/js/jquery-2.1.1.min.js"></script>
  <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  <script type="text/javascript" src="${root}/common/js/jsSDK.js"></script>
  <script type="text/javascript">
    jsSDK.setPrefix("${root}");
    var _generalid = "1";
    var url=window.location.href;

    jsSDK.getWxConfigParam(_generalid,url);
    jsSDK.setWxConfig();
    wx.ready(function(){
      alert(1);
      var shareDataPYQ ={
        title: '召唤小伙伴一起收壕金！年化达15%，跃动指尖好好理财~',
        desc: '召唤小伙伴一起收壕金！年化达15%，跃动指尖好好理财~',
        link: '<%=basePath%>wap/wxtest/auth',
        imgUrl:'<%=basePath%>/images/_share.jpg'
      };
      wx.onMenuShareTimeline(shareDataPYQ);

      var shareDataHY ={
        title: '好好理财',
        desc: '召唤小伙伴一起收壕金！年化达15%，跃动指尖好好理财~',
        link: '<%=basePath%>wap/wxtest/auth',
        imgUrl:'<%=basePath%>/images/_share.jpg'
      };
      wx.onMenuShareAppMessage(shareDataHY);


    });
  </script>
</head>
<body>
  <h1>微信分享测试</h1>
<div>
  您的信息：<br>
  <img src="${headimg}"/>${nickname}
</div>
</body>
</html>
